/** ########### 单选与多选  ##########*/
.option_item {
	margin: 1.4rem 0;
	border: 1px solid #EEEEEE;
	border-radius: 0.6rem;
}

.option_input {
	display: none;
}

.selected_bg {
	background-color: #EEEEEE;
}

.option_label {
	width: 80%;
	display: inline-block;
	position: relative;
	color: #888;
	padding: 1.4rem;
}

.option_text {
	margin-left: 3.4rem;
}

.option_item:hover {
	background-color: #EEEEEE;
}

.option_label:active {
	background: #EEEEEE;
}

.option_label:after {
	content: "";
	/*必须设置*/
	display: inline-block;
	width: 2rem;
	height: 2rem;
	border: 1px solid #888;
	position: absolute;
	left: 1.4rem;
	top: 0;
	bottom: 0;
	margin: auto;
	border-radius: 50%;
}

.option_input:checked+.option_label:after {
	background-color: #6E308E;
}

.option_disEnable {
	pointer-events: none;
	/* background-color: #f0f2f5; */
}

.section_row {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.icon_20 {
	width: 2rem;
	height: 2rem;
}

.btn_group {
	display: flex;
	flex-direction: row;
	padding: 1rem;
}

.btn_child {
	flex: 1;
	background-color: #1890ff;
	border: 0;
	border-radius: 2rem;
	color: white;
	padding: 1rem 0;
	margin-left: 1rem;
}

.tag_box {
	display: grid;
	grid-template-columns: repeat(10, 1fr);
	gap: 6px;
	margin: 1rem;
	max-height: 50rem;
	overflow-y: auto;
}

.tag_item {
	display: grid;
	place-items: center;
	width: 2.8rem;
	height: 2.8rem;
	background-color: #1890ff;
	color: white;
	border-radius: 50%;
}

.question_type {
	color: red;
	font-size: 1.4rem;
	margin-right: 0.5rem;
}

/* ############ 预览start ############# */

.form_preview {
	width: 100%;
	background: white;
	position: relative;
	font-size: 1.4rem;
}

.form_item {
	display: flex;
	flex-direction: row;
	align-items: center;
	padding: 1.4rem;
}

.form_label {
	width: 30%;
	color: #888;
}

.form_describe {
	flex: 1;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: right;
}

.form_describe .value {
	color: #333;
}

.form_describe .icon_right {
	width: 2rem;
	height: 2rem;
	margin-left: 1rem;
}

.form_line {
	height: 1px;
	background: #f0f2f6;
	margin-left: 1.4rem;
}

/* ############ 预览end ############# */

.form_preview_row {
	display: flex;
	flex-direction: row;
	padding: 1.4rem;
}

.form_preview_body {
	display: flex;
	flex-direction: row;
	align-items: center;
	flex: 1;

	.preview_content {
		display: flex;
		flex-direction: column;
		margin-left: 1rem;
		flex: 1;
	}

	.preview_des {
		color: #999;
		margin-top: 0.6rem;
	}
}

.btn_copy {
	background: #fff;
	border-style: none;
	border-radius: 2rem;
	padding: 0.4rem 1rem;
	font-size: 1.2rem;
	border: 1px solid #ededed;
	color: #666;
}

.form {
	background: white;
	display: flex;
	flex-direction: column;
	position: relative;
}

.form_row {
	padding: 1.4rem;
	display: flex;
	flex-direction: row;
	align-items: center;
	/* border-bottom: 1px solid #f0f2f6; */
}

.form_notice {
	background: #FEFCEF;
	padding: 1.4rem;
	color: #E17349;
	font-size: 1.2rem;
	text-align: center;
}

.form_select_radio {
	display: flex;
	flex-direction: row;
	align-items: center;
	padding: 1.4rem;
	position: relative;
	border-bottom: 1px solid #f0f2f6;
}

.form_select_input {
	display: none;
}

.form_select_content {
	flex: 1;
	color: #999;
	margin-right: 2rem;
}

/* 创建自定义复选框的外观 */
.form_select_radio .checkmark {
	display: inline-block;
	width: 1.6rem;
	/* 复选框的宽度 */
	height: 1.6rem;
	/* 复选框的高度 */
	border: 1px solid #ededed;
	/* 未选中状态下的背景色 */
	/* 与文本的距离 */
	border-radius: 50%;
	/* 圆角 */
	position: absolute;
	right: 1.4rem;
}

/* 当复选框被选中时 */
.form_select_input:checked+.checkmark {
	background: green;
	/* 选中状态下的背景色 */
	-webkit-transition: all 0.15s ease-in;
	transition: all 0.15s ease-in;
}

/* 当复选框被选中时 */
.form_select_input:checked+.form_select_content {
	color: #333 !important;
}

/* 创建复选框内部的对勾 */
.form_select_input:checked+.checkmark::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 3px;
	width: 5px;
	/* 对勾的宽度 */
	height: 8px;
	/* 对勾的高度 */
	border: 1px solid white;
	/* 对勾的颜色 */
	border-width: 0 2px 2px 0;
	/* 对勾的边框 */
	transform: rotate(45deg);
	/* 对勾的旋转角度 */
	color: #333;
}

.radio_label {
	position: relative;
}

.radio_input {
	display: none;
}

.radio_input:checked+.radio_content {
	background-color: #1890ff;
	color: white;
}

.radio_content {
	background-color: #f0f2f6;
	color: #444;
	padding: 4px 12px;
	border-radius: 6px;
	margin-right: 10px;
}

.radio_actived {
	background-color: #1890ff;
	color: white;
}

/* toggle切换按钮 */
@supports (-webkit-appearance: none) or (-moz-appearance: none) {
	input[type=checkbox] {
		--active: #275EFE;
		--active-inner: #fff;
		--focus: 2px rgba(39, 94, 254, .3);
		--border: #BBC1E1;
		--border-hover: #275EFE;
		--background: #fff;
		--disabled: #F6F8FF;
		--disabled-inner: #E1E6F9;
		-webkit-appearance: none;
		-moz-appearance: none;
		height: 21px;
		outline: none;
		display: inline-block;
		vertical-align: top;
		position: relative;
		margin: 0;
		cursor: pointer;
		border: 1px solid var(--bc, var(--border));
		background: var(--b, var(--background));
		transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
	}

	input[type=checkbox]:after {
		content: "";
		display: block;
		left: 0;
		top: 0;
		position: absolute;
		transition: transform var(--d-t, 0.3s) var(--d-t-e, ease), opacity var(--d-o, 0.2s);
	}

	input[type=checkbox]:checked {
		--b: var(--active);
		--bc: var(--active);
		--d-o: .3s;
		--d-t: .6s;
		--d-t-e: cubic-bezier(.2, .85, .32, 1.2);
	}

	input[type=checkbox]:disabled {
		--b: var(--disabled);
		cursor: not-allowed;
		opacity: 0.9;
	}

	input[type=checkbox]:disabled:checked {
		--b: var(--disabled-inner);
		--bc: var(--border);
	}

	input[type=checkbox]:disabled+label {
		cursor: not-allowed;
	}

	input[type=checkbox]:hover:not(:checked):not(:disabled) {
		--bc: var(--border-hover);
	}

	input[type=checkbox]:focus {
		box-shadow: 0 0 0 var(--focus);
	}

	input[type=checkbox]+label {
		font-size: 14px;
		line-height: 21px;
		display: inline-block;
		vertical-align: top;
		cursor: pointer;
		margin-left: 4px;
	}

	input[type=checkbox].switch {
		width: 50px;
		border-radius: 11px;
	}

	input[type=checkbox].switch:after {
		left: 2px;
		top: 2px;
		border-radius: 50%;
		width: 15px;
		height: 15px;
		background: var(--ab, var(--border));
		transform: translateX(var(--x, 0));
	}

	input[type=checkbox].switch:checked {
		--ab: var(--active-inner);
		--x: 29px;
	}

	input[type=checkbox].switch:disabled:not(:checked):after {
		opacity: 0.6;
	}
}




